#ifndef __MOTOR_H_

#define __MOTOR_H_


#include "stm32f1xx_hal.h"

/**
 * 设置电机的占空比
 */
void set_pwm_left(TIM_HandleTypeDef * htim,int16_t duty);

void set_pwm_right(TIM_HandleTypeDef * htim,int16_t duty);

int16_t read_encoder_delta_location(int16_t * prev,uint16_t raw_encoder_count) ;
#endif
